package nancal.mp.db.mongo.base


import nbcp.base.db.IdName
import nbcp.base.db.annotation.Cn
import nbcp.myoql.db.comm.ITreeTable
import java.io.Serializable

/**
 * Created by udi on 17-6-10.
 */

open class MenuDefine(
    var id: String = "",
    @Cn("菜单名称")
    var name: String = "",
    @Cn("菜单链接")
    var url: String = "",
    @Cn("class")
    var css: String = "",
    @Cn("资源编码")
    var code: String = "",
    @Cn("排序")
    var sort: Float = 0F,
    var parent: IdName = IdName()
) : ITreeTable, Serializable {
    override fun getParentId(): String {
        return this.parent.id;
    }
}


